package cn.sc.summer.protocol.form.login;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 类名：手机验证码登录表单
 *
 * @author a-xin
 * @date 2023/12/4 11:15
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "手机验证码登录表单")
public class SmsCodeLoginForm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户电话号码
     */
    @ApiModelProperty(value = "用户电话号码")
    @NotBlank(message = "用户电话号码不能为空！")
    private String userTel;

    /**
     * 短信验证码
     */
    @ApiModelProperty(value = "短信验证码")
    @NotBlank(message = "短信验证码不能为空！")
    private String smsCode;

    /**
     * 短信验证key
     */
    @ApiModelProperty(value = "短信验证key")
    @NotBlank(message = "短信验证key不能为空！")
    private String smsRandomKey;

}
